package cn.mooncode.basketballManage.service;

import cn.mooncode.basketballManage.pojo.Match;
import cn.mooncode.basketballManage.pojo.RespBean;
import cn.mooncode.basketballManage.pojo.RespPageBean;
import com.baomidou.mybatisplus.extension.service.IService;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author jwz
 * @since 2021-03-28
 */
public interface IMatchService extends IService<Match> {

    /**
     * 获取所有比赛信息
     * @param currentPage
     * @param size
     * @param match
     * @return
     */
    RespPageBean getAllMatches(Integer currentPage, Integer size, Match match);

    /**
     * 获取当前比赛信息
     * @param currentPage
     * @param size
     * @param match
     * @param tid
     * @return
     */
    RespPageBean getCurrentMatches(Integer currentPage, Integer size, Match match, Integer tid);

    /**
     * 添加比赛结果
     * @param id
     * @param result
     * @return
     */
    RespBean addResult(Integer id, String result);
}
